import 'package:flutter/material.dart';

class DemoPage extends StatefulWidget {
  DemoPage({Key? key}) : super(key: key);

  _DemoPageState createState() => _DemoPageState();
}

class _DemoPageState extends State<DemoPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text("demo"),
        ),
        body: Row(
          children: [
            Container(
              width: 300,
              color: Colors.green,
            ),
            Expanded(
              flex: 1,
              child: Container(
                color: Colors.yellow,
              ),
            )
          ],
        ));
  }
}
